<?php
namespace Cmf\Models;
/**
 * 用户管理模型
 */
class User extends \Phalcon\Mvc\Model
{
    public $role_id;
    public $account;
    public $name;
    public $email;
    public $password;
    public $status;
    public $created_at;
    public $updated_at;

    public function initialize(){
        $this->setSource(TABLE_PREFIX."user");
        $this->hasOne('role_id','Cmf\Models\Role','id',[
            'alias'=>'role',
        ]);
    }
}
